﻿namespace ARS.Control.Common
{
    public class DpSearchHelper
    {
        /// <summary>
        /// 模糊查找
        /// </summary>
        /// <param name="fieldName"></param>
        /// <returns></returns>
        public static string GetLikeWhere(string fieldName,string control_name)
        {
            return string.Format("{0} like '%{{{{Text-{1}}}}}%'", fieldName, control_name);
        }
        /// <summary>
        /// 相等
        /// </summary>
        /// <param name="fieldName"></param>
        /// <returns></returns>
        public static string GetEqualWhere(string fieldName, string control_name)
        {
            return string.Format("{0}='{{{{Text-{1}}}}}'", fieldName, control_name);
            //ARS.Control.Request.Action;
        }
    }
}
